From 179af029a24147ffc09f8b165b7d812b135d3f2d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 23 Jul 2023 11:13:22 +0100 Subject: Fix tests for int-add and string-add Patio code gen --- ...mpiler.testing.snapshots.Snapshotter)].expected | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..a0ddbbd8 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenStringAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + +( + function-decl + "shed__runtime__string_add" + params=(("left" int) ("right" int)) + return-type=int +) + +Locals: + * ("tmp__0" int) + +Args: + +Instructions: + +( + (call (local "tmp__0") "shed__runtime__string_add" ((local "b") (local "c"))) +) + +Temporary stack: + * tmp__0 + * a -- cgit v1.2.3